package manager.categories.dao;

import manager.categories.vo.CategoryVO;
import tk.mybatis.mapper.additional.insert.InsertListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CategoryDao extends Mapper<CategoryVO>, InsertListMapper<CategoryVO> {
    //根据名称搜索参数组
    List<CategoryVO> selectByCondition(CategoryVO categoryVO);
    //添加分组
    void addCategory(CategoryVO categoryVO);
    //批量插入数据
    void  addCategoryBatch(List<CategoryVO> categoryVOList);
    //修改分组
    void updateCategory(CategoryVO categoryVO);
    //删除参数组
    void deleteCategories(Integer[] ids);
}
